package handlers

import (
	"github.com/gin-gonic/gin"
	"role/models"
)

func UsersList(c *gin.Context) {

	var users models.Users
	err := models.DB.Find(&users).Error
	if err != nil {
		c.JSON(200, gin.H{
			"code": 0,
			"msg":  "查询失败",
		})
		return
	}
	if err != nil {
		c.JSON(200, gin.H{
			"code": 200,
			"msg":  "查询成功",
		})
		return
	}
}
